package com.drawingtimer.admin.service;

import com.drawingtimer.admin.model.entity.TTimeSegmentRecord;
import com.drawingtimer.admin.model.from.TTimeSegmentRecordFrom;
import com.drawingtimer.admin.model.vo.TTimeSegmentRecordPageVO;
import com.drawingtimer.admin.model.qo.TTimeSegmentRecordQO;
import com.hccake.ballcat.common.model.domain.PageParam;
import com.hccake.ballcat.common.model.domain.PageResult;
import com.hccake.ballcat.common.model.result.R;
import com.hccake.extend.mybatis.plus.service.ExtendService;
import org.springframework.core.io.ByteArrayResource;

/**
 * 时间段记录
 *
 * @author jjh 2025-04-24 16:34:17
 */
public interface TTimeSegmentRecordService extends ExtendService<TTimeSegmentRecord> {

	/**
	 * 根据QueryObeject查询分页数据
	 * @param pageParam 分页参数
	 * @param qo 查询参数对象
	 * @return PageResult&lt;TTimeSegmentRecordPageVO&gt; 分页数据
	 */
	PageResult<TTimeSegmentRecordPageVO> queryPage(PageParam pageParam, TTimeSegmentRecordQO qo);

	boolean updateStartTimer(TTimeSegmentRecordFrom tTimeSegmentRecord);

	boolean updateEndTimer(TTimeSegmentRecordFrom tTimeSegmentRecord);

	ByteArrayResource getPlmProgramFile(TTimeSegmentRecordQO qo);

	String getPlmProgramFileNC(TTimeSegmentRecordQO qo);

}